import { Base } from '../../utils/base.js'

export class Home extends Base{

  constructor(){
    super()
  }

  getBannerData(id,callback){
    var params={
      url:'https://c.y.qq.com/musichall/fcgi-bin/fcg_yqqhomepagerecommend.fcg?g_tk=5381&uin=0&format=json&notice=0&platform=h5&needNewCode=1',
      sCallback:function(res){
        callback && callback(res)
      }
    }
    this.request(params)


    // wx.request({
    //   url: 'https://c.y.qq.com/musichall/fcgi-bin/fcg_yqqhomepagerecommend.fcg?g_tk=5381&uin=0&format=json&notice=0&platform=h5&needNewCode=1',
    //   method:"GET",
    //   success:function(res){
    //     callback(res);
    //   }
    // })
  }
}